<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
  pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<title><c:out value="${productType}" />-产品购买</title>
<c:import url="/ctrl/header"></c:import>
</head>
<body>
  <c:import url="/ctrl/top"></c:import>
  <div class="container">
    <div class="row-fluid">
      <c:import url="/ctrl/menu">
        <c:param name="pageId">
          <c:out value="${pageId}" />
        </c:param>
      </c:import>
      <!--/span-->
      <div class="span10">
        <h3 class="greybg">
          <c:out value="${productType}" />
        </h3>
        <c:choose>
          <c:when test="${pager.rowCount>0}">
            <c:forEach var="product" items="${productList}">
              <table
                class="table table-bordered table-striped responsive-utilities">
                <thead>
                  <tr>
                    <th colspan="4"><img
                      src="/images/logo/<c:out value="${product.productPic}"/>.gif" /><a
                      href="/product/detail?id=<c:out value="${product.productId}"/>"
                      style="color: Black;" target="_blank"><c:out
                          value="${product.productName}" /></a></th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td colspan="3"><code>保险时间</code>&nbsp;&nbsp;<c:out
                        value="${product.productTimeDesc}" /></td>
                    <td rowspan="3" style="width: 20%"><br />保费&nbsp;&nbsp;<del>
                        <fmt:formatNumber var="price" type="currency"
                          pattern="￥.00" value="${product.productPrice}" />
                        <c:out value="${price}" />
                      </del><br />结算价&nbsp;&nbsp;<span class="red bold"
                      style="font-size: 16px;"><fmt:formatNumber
                          var="settleprice" type="currency"
                          pattern="￥.00"
                          value="${product.productRealPrice}" /> <c:out
                          value="${settleprice}" /></span><br /> <a
                      class="btn"
                      href="/product/detail?id=<c:out value="${product.productId}"/>"
                      target="_blank">点击购买</a> <br /> <br /></td>
                  </tr>
                  <tr>
                    <td><c:out value="${product.productShortIntro}"
                        escapeXml="false" /></td>
                  </tr>
                </tbody>
              </table>
            </c:forEach>
          </c:when>
          <c:otherwise>
            <h5>没有相关信息</h5>
          </c:otherwise>
        </c:choose>
        <c:import url="/ctrl/pager">
          <c:param name="index" value="${pager.index}" />
          <c:param name="rowcount" value="${pager.rowCount}" />
          <c:param name="params" value="${pager.params}" />
          <c:param name="pagesize" value="${pager.pageSize}" />
          <c:param name="pagename" value="/order/list" />
        </c:import>
      </div>
    </div>
    <hr />
    <c:import url="/ctrl/bottom"></c:import>
  </div>
  <c:import url="/ctrl/footer"></c:import>
</body>
</html>